Skip to content

gh-115999: Note Python 3.14 free-threaded changes in What's New #131285

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 14 commits into from
May 10, 2025

Conversation

corona10
Copy link
Member

@corona10 corona10 commented Mar 15, 2025

@bedevere-app bedevere-app bot added docs Documentation in the Doc dir skip news awaiting core review labels Mar 15, 2025
@github-project-automation github-project-automation bot moved this to Todo in Docs PRs Mar 15, 2025
@corona10 corona10 requested review from mpage, colesbury and itamaro March 15, 2025 14:06
@corona10 corona10 changed the title gh-11599: Update whats news for free-threaded 3.14 gh-115999: Update whats news for free-threaded 3.14 Mar 15, 2025
@corona10 corona10 requested a review from Yhg1s March 15, 2025 14:09
and 10-15% slower than the default build.

This work was done by many contributors, Matt Page, Neil Schemenauer,
Sam Gross, Thomas Wouters, Donghee Na, Kirill Podoprigora and Ken Jin.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also added the @Fidget-Spinner, because I remember his early design involvation while he worked at Quansight.

Copy link
Member

@Fidget-Spinner Fidget-Spinner Mar 15, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the main thing I did that is coming in 3.14 is the stackrefs. But we needed that for the intepreter anyways so it probably counts? Either way I can be left out if the others feel inclined to.

@corona10
Copy link
Member Author

corona10 commented Mar 15, 2025

Anyway, feel free to propose change as same as what we did for 3.13.

@corona10
Copy link
Member Author

@Yhg1s Do you have suggestions for this What's News? I think that you can modify more properly :)

Copy link
Contributor

@StanFromIreland StanFromIreland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lines need to be wrapped to 80 chars.

Impossible to review at the moment

Co-authored-by: Stan Ulbrych <[email protected]>
Comment on lines 803 to 808
Free-threaded mode (:pep:`703`), initially added in 3.13, has been significantly improved. The implementation described in PEP 703 was finished, including C API changes, and temporary workarounds in the interpreter were replaced with more permanent solutions. The specializing adaptive interpreter (:pep:`659`) is now enabled in free-threaded mode, which along with many other optimizations greatly improves its performance. The performance penalty on single-threaded code in free-threaded mode is now roughly 5-10%, depending on platform and C compiler used.

This work was done by many contributors: Sam Gross, Matt Page, Neil Schemenauer, Thomas Wouters, Donghee Na, Kirill Podoprigora, Ken Jin, Itamar Oren, Brett Simmers, Dino Viehland, Nathan Goldbaum, Ralf Gommers,
Lysandros Nikolaou, and many others.

Some of these contributors are employed by Meta, which has continued to provide significant engineering resources to support this project.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Free-threaded mode (:pep:`703`), initially added in 3.13, has been significantly improved. The implementation described in PEP 703 was finished, including C API changes, and temporary workarounds in the interpreter were replaced with more permanent solutions. The specializing adaptive interpreter (:pep:`659`) is now enabled in free-threaded mode, which along with many other optimizations greatly improves its performance. The performance penalty on single-threaded code in free-threaded mode is now roughly 5-10%, depending on platform and C compiler used.
This work was done by many contributors: Sam Gross, Matt Page, Neil Schemenauer, Thomas Wouters, Donghee Na, Kirill Podoprigora, Ken Jin, Itamar Oren, Brett Simmers, Dino Viehland, Nathan Goldbaum, Ralf Gommers,
Lysandros Nikolaou, and many others.
Some of these contributors are employed by Meta, which has continued to provide significant engineering resources to support this project.
Free-threaded mode (:pep:`703`), initially added in 3.13, has been significantly
improved. The implementation described in PEP 703 was finished, including C API
changes, and temporary workarounds in the interpreter were replaced with more
permanent solutions. The specializing adaptive interpreter (:pep:`659`) is now
enabled in free-threaded mode, which along with many other optimizations
greatly improves its performance. The performance penalty on single-threaded
code in free-threaded mode is now roughly 5-10%, depending on platform and C
compiler used.
This work was done by many contributors: Sam Gross, Matt Page, Neil Schemenauer,
Thomas Wouters, Donghee Na, Kirill Podoprigora, Ken Jin, Itamar Oren, Brett Simmers,
Dino Viehland, Nathan Goldbaum, Ralf Gommers, Lysandros Nikolaou, and many others.
Some of these contributors are employed by Meta, which has continued to provide
significant engineering resources to support this project.

Wrapped it for you:-)

corona10 and others added 2 commits May 10, 2025 08:34
@AA-Turner AA-Turner changed the title gh-115999: Update whats news for free-threaded 3.14 gh-115999: Note Python 3.14 free-threaded changes in What's New May 10, 2025
@AA-Turner AA-Turner added the needs backport to 3.14 bugs and security fixes label May 10, 2025
@corona10
Copy link
Member Author

@Yhg1s @mpage If no update is needed, I will merge this in this weekend.

Free-threaded mode (:pep:`703`), initially added in 3.13, has been significantly improved. The implementation described in PEP 703 was finished, including C API changes, and temporary workarounds in the interpreter were replaced with more permanent solutions. The specializing adaptive interpreter (:pep:`659`) is now enabled in free-threaded mode, which along with many other optimizations greatly improves its performance. The performance penalty on single-threaded code in free-threaded mode is now roughly 5-10%, depending on platform and C compiler used.

This work was done by many contributors: Sam Gross, Matt Page, Neil Schemenauer, Thomas Wouters, Donghee Na, Kirill Podoprigora, Ken Jin, Itamar Oren, Brett Simmers, Dino Viehland, Nathan Goldbaum, Ralf Gommers,
Lysandros Nikolaou, Kumar Aditya, and many others.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add Edgar Margffoy as well please? We forgot him in the 3.13 notes I think

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done!

@python python deleted a comment from trevorgrayson May 10, 2025
@corona10 corona10 merged commit f28cbc9 into python:main May 10, 2025
24 checks passed
@miss-islington-app
Copy link

Thanks @corona10 for the PR 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

@github-project-automation github-project-automation bot moved this from Todo to Done in Docs PRs May 10, 2025
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request May 10, 2025
…pythongh-131285)

---------
(cherry picked from commit f28cbc9)

Co-authored-by: Donghee Na <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: T. Wouters <[email protected]>
Co-authored-by: mpage <[email protected]>
@bedevere-app
Copy link

bedevere-app bot commented May 10, 2025

GH-133824 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label May 10, 2025
@corona10 corona10 deleted the gh-11599-docs branch May 10, 2025 10:30
corona10 added a commit that referenced this pull request May 10, 2025
gh-131285) (gh-133824)

gh-115999: Note Python 3.14 free-threaded changes in What's New (gh-131285)

---------
(cherry picked from commit f28cbc9)

Co-authored-by: Donghee Na <[email protected]>
Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: T. Wouters <[email protected]>
Co-authored-by: mpage <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation in the Doc dir skip news topic-free-threading
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

8 participants